package com.dragon.modules.yuegou.service.marketing;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.common.web.PageRequest;
import com.dragon.modules.yuegou.entity.marketing.AnnouncementEntity;
import com.dragon.modules.yuegou.model.marketing.Announcement;
import com.dragon.modules.yuegou.query.marketing.AnnouncementQuery;

import java.util.List;

/**
 * 公告信息表 服务接口
 *
 * @author px
 * @date 2019-04-08 14:44:49
 * @version 2.0
 */
public interface AnnouncementService extends IService<AnnouncementEntity> {

    /**
     * 新增公告
     */
    void createAnnounce(AnnouncementQuery query);

    /**
     * 发送公告
     */
    void sendAnnounce(String id);

    /**
     * 删除公告
     */
    void delAnnounce(String id);
	
	Announcement detail(String announcementId);

    /**
     * 根据商圈id查询公告
     * @param busdId
     * @return
     */
	List<Announcement> findAnnouncementList(String busdId, PageRequest pageInfo);

}